package com.findmeastore.bo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * MasterProduct entity. @author MyEclipse Persistence Tools
 */

public class MasterProduct implements java.io.Serializable {

	// Fields

	private Integer id;
	private User userByCreatedBy;
	private User userByLastModifiedBy;
	private Timestamp creationTstamp;
	private Timestamp lastModifiedTstamp;
	private String name;
	private Set relBusinessProducts = new HashSet(0);
	private Set relProductBrands = new HashSet(0);
	private Set relBusinessBrands = new HashSet(0);
	private Set relCategoryProducts = new HashSet(0);

	// Constructors

	/** default constructor */
	public MasterProduct() {
	}

	/** minimal constructor */
	public MasterProduct(User userByCreatedBy, User userByLastModifiedBy,
			Timestamp creationTstamp, Timestamp lastModifiedTstamp, String name) {
		this.userByCreatedBy = userByCreatedBy;
		this.userByLastModifiedBy = userByLastModifiedBy;
		this.creationTstamp = creationTstamp;
		this.lastModifiedTstamp = lastModifiedTstamp;
		this.name = name;
	}

	/** full constructor */
	public MasterProduct(User userByCreatedBy, User userByLastModifiedBy,
			Timestamp creationTstamp, Timestamp lastModifiedTstamp,
			String name, Set relBusinessProducts, Set relProductBrands,
			Set relBusinessBrands, Set relCategoryProducts) {
		this.userByCreatedBy = userByCreatedBy;
		this.userByLastModifiedBy = userByLastModifiedBy;
		this.creationTstamp = creationTstamp;
		this.lastModifiedTstamp = lastModifiedTstamp;
		this.name = name;
		this.relBusinessProducts = relBusinessProducts;
		this.relProductBrands = relProductBrands;
		this.relBusinessBrands = relBusinessBrands;
		this.relCategoryProducts = relCategoryProducts;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUserByCreatedBy() {
		return this.userByCreatedBy;
	}

	public void setUserByCreatedBy(User userByCreatedBy) {
		this.userByCreatedBy = userByCreatedBy;
	}

	public User getUserByLastModifiedBy() {
		return this.userByLastModifiedBy;
	}

	public void setUserByLastModifiedBy(User userByLastModifiedBy) {
		this.userByLastModifiedBy = userByLastModifiedBy;
	}

	public Timestamp getCreationTstamp() {
		return this.creationTstamp;
	}

	public void setCreationTstamp(Timestamp creationTstamp) {
		this.creationTstamp = creationTstamp;
	}

	public Timestamp getLastModifiedTstamp() {
		return this.lastModifiedTstamp;
	}

	public void setLastModifiedTstamp(Timestamp lastModifiedTstamp) {
		this.lastModifiedTstamp = lastModifiedTstamp;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set getRelBusinessProducts() {
		return this.relBusinessProducts;
	}

	public void setRelBusinessProducts(Set relBusinessProducts) {
		this.relBusinessProducts = relBusinessProducts;
	}

	public Set getRelProductBrands() {
		return this.relProductBrands;
	}

	public void setRelProductBrands(Set relProductBrands) {
		this.relProductBrands = relProductBrands;
	}

	public Set getRelBusinessBrands() {
		return this.relBusinessBrands;
	}

	public void setRelBusinessBrands(Set relBusinessBrands) {
		this.relBusinessBrands = relBusinessBrands;
	}

	public Set getRelCategoryProducts() {
		return this.relCategoryProducts;
	}

	public void setRelCategoryProducts(Set relCategoryProducts) {
		this.relCategoryProducts = relCategoryProducts;
	}

}